<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PoolToSPRelationship.aspx.cs" Inherits="PoolToSPRelationship" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 740px">
        <tr>
            <td style="width: 25px">
            </td>
            <td style="width: 25px">
                &nbsp;</td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="1">
            </td>
            <td colspan="2">
                <strong>Pool &lt;-&gt; Service Provider Relationship</strong></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 25px">
            </td>
            <td style="width: 25px">
                &nbsp;</td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td runat="server" style="width: 25px; background-color: white">
            </td>
            <td style="width: 25px; background-color: white" id="tab1" runat="server" >
                <asp:HyperLink ID="lnkPool" runat="server" NavigateUrl="~/PoolToSPRelationship.aspx?Entity=Pool" Width="39px">Pool</asp:HyperLink></td>
            <td style="width: 100px" id="tab2" runat="server">
                <asp:HyperLink ID="lnkServiceProvider" runat="server" NavigateUrl="~/PoolToSPRelationship.aspx?Entity=ServiceProvider" Width="255px">Service Provider</asp:HyperLink></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 25px; background-color: white">
            </td>
            <td style="width: 25px; background-color: white;">
                &nbsp;</td>
            <td colspan="2" style="width: 100px; background-color: white;">
                </td>
        </tr>
        <tr>
            <td align="center" colspan="1" style="background-color: white">
            </td>
            <td align="left" colspan="3" style="background-color: white">
                <asp:Label ID="lblEntitySelect" runat="server" Text="Select :"></asp:Label>
                <asp:DropDownList ID="ddlEntity" runat="server" Width="405px" DataTextField="PoolName" DataValueField="PoolID" OnSelectedIndexChanged="ddlEntity_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="center" colspan="1" style="background-color: white">
            </td>
            <td align="left" colspan="3" style="background-color: white">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="1" style="background-color: white">
            </td>
            <td colspan="3" style="background-color: white">
                <asp:GridView ID="gvResults" runat="server" AllowPaging="True" AllowSorting="false"
     AutoGenerateColumns="false"
     EmptyDataText="no results found"
     PagerSettings-Mode="NextPrevious" PagerSettings-NextPageText="next" PagerSettings-PreviousPageText="prev" OnPageIndexChanging="gvResults_PageIndexChanging" Width="100%" >
     
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <RowStyle BackColor="#EFF3FB" Wrap="True" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
    <AlternatingRowStyle BackColor="White" Wrap="True" />
    
    <Columns>
             <asp:TemplateField HeaderText="Select">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSelect" runat="server" />                        
                    </ItemTemplate>
                </asp:TemplateField>                                       
    </Columns>
                    <PagerSettings Mode="NumericFirstLast" />
 </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 25px">
            </td>
            <td style="width: 25px">
            </td>
            <td>
                </td>
            <td>
                <asp:Button ID="btnFunction" runat="server" Text="Add" OnClick="btnFunction_Click" /><asp:TextBox Visible="false" ID="tbPage" runat="server">0</asp:TextBox></td>
        </tr>
    </table>
</asp:Content>

